<?php 

global $base_url;

$termos = $view->result;

$objTaxonomia = new stdClass();
$strEstado = "";

getNavegacaoEstado($objTaxonomia, $strEstado);


?>
<div class="ventures-group">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h1>Navegue pelos nossos empreendimentos</h1>
                <ul class="btn-v">
                    <?php
                    $cont = 1;
                    foreach ($termos as $value):
                        $tid = $value->tid;
                        $titulo = $value->taxonomy_term_data_name; 
                        if(empty($strEstado))
                            $url = drupal_get_path_alias('taxonomy/term/'.$tid);
                        else
                            $url = "empreendimentos/" .$strEstado . "/" . trim(transliteration_get($titulo));
                        $uri_btn = $value->field_field_image[0]["rendered"]["#item"]['uri'];
                        $url_btn = image_style_url('206_69',$uri_btn);
                        $url_css[] = $url_btn;
                        
                        $uri_btn_css = $value->field_field_image_hover[0]["rendered"]["#item"]['uri'];
                        $url_btn_css = image_style_url('206_69',$uri_btn);
                        $url_css_hover[] = $url_btn_css; 
                        
                           $ttClean = "";
                    ?>
                    
                    <li class="button-<?php print $ttClean;?>"><a href="<?= $base_url ?>/<?php print $url;?>"><img src="<?php print $url_btn; ?>"></a></li>
                    <?php $cont++; endforeach;?>
                </ul>
        </div>
        </div>
    </div>
</div>